//
//  SystemCamera.h
//  chargeAPP
//
//  Created by WTM on 17/4/7.
//  Copyright © 2017年 CarCharge. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Singleton.h"

@interface SystemCamera : NSObject
                                <UIActionSheetDelegate,
                                 UIImagePickerControllerDelegate,
                                 UINavigationControllerDelegate
                                >

{
    UIImagePickerControllerSourceType _sourceType;
    UIImagePickerControllerCameraDevice _device;
}
@property (copy ,nonatomic) void (^SelectImage)(UIImage *headerImage,NSInteger buttonIndex);
@property (assign, nonatomic) UIViewController *delegateVC;

@property (nonatomic, assign) NSInteger buttonIndex;

singleton_interface(SystemCamera);

+ (void)cameraWillShowInController:(UIViewController *)vc;

+ (void)cameraWillShowInController:(UIViewController *)vc selectImage:(void (^)(UIImage *selectImg,NSInteger buttonIdex))selectBlock;

@end
